package com.hspedu.seckill.utils;

import java.util.UUID;

/**
 * @author: xujiabing
 * @date: 2024-10-03 15:43
 * @description uuid工具类
 */
public class UUIDUtil {
    public static String uuid() {
        //把UUID 中的- 替换掉
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static void main(String[] args) {
        String uuid = UUIDUtil.uuid();
        System.out.println("uuid=" + uuid);
    }
}
